package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Edu启动类
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.atguigu"})//加载需要的配置类路径 设置包扫描的规则
@EnableSwagger2
@EnableTransactionManagement  //开启事务
@EnableDiscoveryClient  //开启Nacos服务注册
@EnableFeignClients   //调用端开启Feign调用
public class EduApplication {

    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }

}
